Skip to content

feat: build skill-manager on the shared MCP library, with chart values on model-manager's layout - #58

Merged
QuentinBisson merged 7 commits into
mainfrom
feat/shared-library
Dec 1, 2026
Merged

QuentinBisson merged 7 commits into
mainfrom
feat/shared-library

Conversation

@QuentinBisson

Copy link
Copy Markdown
Contributor

What does this PR do?

Moves skill-manager onto the shared MCP library, the mcp-timescale pattern: OAuth through mcp-oauth's oauthconfig.SettingsFromEnv (OAUTH_* variables), a stateless /mcp, mcp-toolkit v0.17.0's origin and host checks (also passed to mcp-go's WithAllowedHosts), MCP conformance CI, and chart values on model-manager's layout: oauth.resourceServer / oauth.authorizationServer, networkPolicy.gatewayPeers / metricsPeers, the observability.giantswarm.io/tenant label, httpRoute, mcp.allowedHosts / mcp.allowedOrigins.

What is the effect of this change to users?

Old flags, variables and values keep working, deprecated; the install notes list each one set. oauth.authorizationServer.enabled: false makes the server a resource server only (no Dex client secret); the default stays on. /oauth/introspect is off unless OAUTH_ENABLE_INTROSPECTION_ENDPOINT is set. The NetworkPolicy admits muster, agentgateway and agent-manager instead of every pod in the namespace, and alloy-metrics instead of all of kube-system. UPGRADE.md has the details.

Any background context you can provide?

Part of #41 and giantswarm/giantswarm#39405. Rendered with gazelle's values: besides the OAuth flags becoming OAUTH_* variables, only the NetworkPolicy changes, and every current caller is still admitted.

What is needed from the reviewers?

The NetworkPolicy peer defaults, and the resource-server-only path.

mcp-oauth is configured with oauthconfig.SettingsFromEnv and set up with oauthconfig.Setup, so the OAUTH_* variables apply as mcp-oauth documents them. The earlier flags and variables keep working as deprecated fallbacks that log their replacement; an OAUTH_* variable wins over them. The caller's ID token comes from handler.ProviderIDTokenFromContext, which also covers a trusted issuer marked as the OpenID Provider.

The streamable-HTTP endpoint is stateless. MCP_ALLOWED_HOSTS and MCP_ALLOWED_ORIGINS (mcp-toolkit v0.17.0-rc.1 httpx.OriginPolicyFromEnv) feed httpx.ProtectOriginWith, and the hosts also mcp-go's WithAllowedHosts.
…ed origins

The chart takes mcp-oauth's value layout for MCP servers (oauth.resourceServer, oauth.authorizationServer) and renders mcp-oauth's OAUTH_* variables instead of the deprecated flags. Dex becomes a trusted issuer marked as the OpenID Provider, accepting the same audiences. The old oauth.* keys keep working as deprecated fallbacks, and the install notes name each one set. With oauth.authorizationServer.enabled false the server needs no client secret.

mcp.allowedHosts and mcp.allowedOrigins render MCP_ALLOWED_HOSTS and MCP_ALLOWED_ORIGINS.
The workflow runs mcp-toolkit's conformance scenarios, at the version go.mod requires, against the server without OAuth. The baseline lists the session warning a stateless endpoint gets.
…with model-manager

networkPolicy.gatewayPeers (muster, agentgateway, agent-manager) and networkPolicy.metricsPeers (kube-system alloy-metrics) replace admitting every pod of the release namespace and of kube-system; ingressNamespaces and metricsNamespaces stay as deprecated additional permissions. serviceMonitor.labels carries the observability.giantswarm.io/tenant label by default and the ServiceMonitor requires it. httpRoute renders an optional Gateway API route.
@circleci-architect

Copy link
Copy Markdown

Published Helm chart skill-manager

0.4.8-rb3a91406t20261201130611h726baed
Chart skill-manager
Version 0.4.8-rb3a91406t20261201130611h726baed
OCI reference oci://gsoci.azurecr.io/charts/giantswarm/skill-manager:0.4.8-rb3a91406t20261201130611h726baed
Digest sha256:eb0100069884583a48d0f133c2ab1d620ea17bce7633e35f276d38d1543a9e3b
Registry public — gsoci.azurecr.io
Git catalog giantswarm-test-catalog (index)
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/skill-manager --version 0.4.8-rb3a91406t20261201130611h726baed

Posted by architect-orb · build 1215 · commit 726baed · updated in place on every push

@QuentinBisson
QuentinBisson marked this pull request as ready for review December 1, 2026 13:21
@QuentinBisson
QuentinBisson requested a review from a team as a code owner December 1, 2026 13:21
@QuentinBisson
QuentinBisson merged commit f7d389d into main Dec 1, 2026
16 of 17 checks passed
@QuentinBisson
QuentinBisson deleted the feat/shared-library branch December 1, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant